package com.snjx.micro.oauth.user.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @version 1.0
 * @Created by suonanjiexi
 * @Description TODO
 * @Date 2020/7/30 2:52 下午
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("用户")
public class UserDTO {
    @ApiModelProperty(required = true, notes = "用户id")
    private Long id;
    @ApiModelProperty(required = true, notes = "用户名称")
    private String username;
    @ApiModelProperty(required = true, notes = "用户密码")
    private String password;
    @ApiModelProperty(required = true, notes = "用户权限")
    private List<String> roles;
}
